package com.luhan.fmmall.service;

import com.luhan.fmmall.entity.ShoppingCart;
import com.luhan.fmmall.vo.ResultVO;

public interface ShoppingCartService {
    //添加购物车
    public ResultVO addShoppingCart(ShoppingCart shoppingCart);

    /**
     * 根据用户id查询购物车列表
     * @param userId
     * @return
     */
    public ResultVO selectShopCartByUserId(Integer userId);

    /**
     * 根据购物车id修改数量
     * @param cartId
     * @param cartNum
     * @return
     */
    public ResultVO updateCartNumByCartId(int cartId,int cartNum);

    /**
     * 根据购物车id删除
     * @param cartId
     * @return
     */
    public ResultVO deleteCartShopByCartId(int cartId);

    /**
     *根据cids集合查询购物车记录
     * @param cids
     * @return
     */
    public ResultVO listShopCartByCids(String cids);
}
